package com.cml.dm.admin.service;

import com.cml.dm.admin.entity.DmExeLogger;
import com.cml.dm.admin.entity.DmMetadata;
import com.cml.dm.admin.model.DownloadModel;
import com.cml.dm.admin.request.BackupListParams;

import java.util.List;

public interface DmEngineService {

    public void backup(String taskID, String orgId, String shardingColumn);

    public List<DmExeLogger> getTaskList(String taskID, String orgId);

    public List<DmMetadata> queryDmMetadata(DmMetadata dmMetadata);

    void recover(Long id);

    void saveBatch(List<DmMetadata> metadatas);

    List<DmExeLogger> backupList(BackupListParams params);

    DownloadModel download(Long id);

}
